Internal Web Server
Here is a complete list of Bluetooth commands and parameters for your GEOSNAKE device:
π Bluetooth Commands for STATOTEST GEOSNAKEβ
π§ WiFi Managementβ
wifi_on - Turns on WiFi and restarts the device
wifi_off - Turns off WiFi
π Network Address Settingsβ
set_address:XX - Sets the Modbus address (1-255)
Example: set_address:5
get_address - Displays the current address
β‘ Communication Speed Settingsβ
set_baudrate:YYYY - Sets the RS485 communication speed
Supported: 9600, 19200, 38400, 57600, 115200
Example: set_baudrate:115200
get_baudrate - Displays the current baudrate
π System Managementβ
restart - Restarts the device
π ADXL355 Measurement (accelerometer)β
measure_adxl - Starts accelerometer measurement
π§² MLX90393 Measurement (magnetometer)β
measure_mlx - Starts magnetometer measurement
βοΈ ADXL355 Configurationβ
set_adxl_points:N - Sets the number of samples (24-2048)
get_adxl_points - Displays the current number of samples
set_adxl_range:X - Sets the measurement range (1=Β±2g, 2=Β±4g, 3=Β±8g) (from FW>=6)
get_adxl_range - Displays the current range (from FW>=6)
set_adxl_odr:X - Sets the output data rate (0-10) (from FW>=6)
get_adxl_odr - Displays the current ODR (from FW>=6)
βοΈ MLX90393 Configurationβ
| Command | Description | Range | Response |
|---|---|---|---|
set_mlx_gain:X | Set gain | 0-7 | "MLX gain set to X" |
get_mlx_gain | Get gain | - | "MLX gain: X" |
set_mlx_osr:X | Set oversampling | 0-3 | "MLX OSR set to X" |
get_mlx_osr | Get OSR | - | "MLX OSR: X" |
set_mlx_filter:X | Set filter | 0-7 | "MLX filter set to X" |
get_mlx_filter | Get filter | - | "MLX filter: X" |
set_mlx_points:X | MLX sample count | 1-1024 | "MLX points set to X" |
get_mlx_points | Get sample count | - | "MLX points: X" |
show_mlx_settings | All MLX settings | - | Complete MLX overview |
measure_mlx | Start MLX measurement | - | Starts measurement |
HTTP Configurationβ
| Command | Description | Response |
|---|---|---|
http_on | Enables HTTP data sending | "HTTP data sending enabled" |
http_off | Disables HTTP sending | "HTTP data sending disabled" |
http_status | HTTP sending status | "HTTP: ENABLED/DISABLED" |
send_data | Sends data to the server | "Data sent" or error |
test_internet | Test connection | "Internet connection: OK/FAILED" |
π Settings Management (from FW>=6)β
reset_defaults - Restores all settings to default values
show_settings - Displays current settings
clear_flash - Clears flash memory and restarts
factory_reset - Complete factory reset + restart
π Usage Examplesβ
Basic device setup:β
get_address β "Address: 1"
set_address:10 β "Address set OK"
get_baudrate β "Baudrate: 19200"
set_baudrate:115200 β "Baudrate set OK"
Measurement configuration:β
get_adxl_points β "ADXL355 points: 10"
set_adxl_points:500 β "ADXL355 points set OK"
get_adxl_range β "ADXL355 range: 0"
get_adxl_odr β "ADXL355 ODR: 7"
Range settings:β
set_adxl_range:0 β "ADXL355 range set to Β±2g (value: 0)"
set_adxl_range:1 β "ADXL355 range set to Β±4g (value: 1)"
set_adxl_range:2 β "ADXL355 range set to Β±8g (value: 2)"
set_adxl_range:5 β "Invalid range (0=Β±2g, 1=Β±4g, 2=Β±8g)"
ODR settings:β
set_adxl_odr:0 β "ADXL355 ODR set to 4000Hz (value: 0)"
set_adxl_odr:2 β "ADXL355 ODR set to 1000Hz (value: 2)"
set_adxl_odr:7 β "ADXL355 ODR set to 31.25Hz (value: 7)"
set_adxl_odr:15 β "Invalid ODR (0-10, see documentation)"
Display settings:β
show_settings β "Current Settings:
Address: 1
Baudrate: 19200
WiFi: OFF
Bluetooth: ON
ADXL355 points: 500
ADXL355 range: Β±4g (1)
ADXL355 ODR: 1000Hz (2)
MLX90393 points: 100"
ODR Values Reference Table:β
| Value | Frequency | Description |
|---|---|---|
| 0 | 4000Hz | Highest frequency |
| 1 | 2000Hz | High frequency |
| 2 | 1000Hz | Default |
| 3 | 500Hz | Medium |
| 4 | 250Hz | Medium |
| 5 | 125Hz | Low |
| 6 | 62.5Hz | Very low |
| 7 | 31.25Hz | Ultra low |
| 8 | 15.625Hz | Very slow |
| 9 | 7.813Hz | Extremely slow |
| 10 | 3.906Hz | Slowest |
Starting a measurement:β
measure_adxl β Starts measurement and returns:
"ADXL355:
Sample count: 500
Aggregation X: min=-0.123456g max=0.234567g avg=0.012345g
Aggregation Y: min=-0.098765g max=0.187654g avg=-0.003456g
Aggregation Z: min=0.876543g max=1.123456g avg=0.987654g
Temperature: 23.45Β°C
angle X: 1.23Β° Y: -0.45Β° Z: 12.34Β°"
measure_mlx β Starts magnetometer measurement
WiFi Management:β
wifi_on β "WiFi enabled" + device restart
wifi_off β "WiFi disabled"
System restart:β
restart β Immediate device restart
π± Connecting to the Deviceβ
BLE device name: STATOTEST_GEOSNAKE-[address]
- Example:
STATOTEST_GEOSNAKE-1(for address 1) - Example:
STATOTEST_GEOSNAKE-10(for address 10)
Security details:
- PIN code:
123456 - Encryption: Yes
π Return Valuesβ
ADXL355 measurement contains:β
- Sample count - how many values were measured
- XYZ aggregation - minimum, maximum, average for each axis in g
- Temperature - current sensor temperature in Β°C
- Angles - angle X, Y, Z calculated from acceleration
Error messages:β
"Invalid address" - Invalid address (outside range 1-255)
"Invalid baudrate" - Unsupported speed
"Invalid points" - Invalid sample count (outside 24-1024)
"Address set OK" - Address set successfully
"Baudrate set OK" - Speed set successfully
"ADXL355 points set OK" - Sample count set successfully
β οΈ Important Notesβ
- The
wifi_oncommand will restart the device - Measurement may take several seconds depending on the number of samples
- Addresses 1-255 are valid for Modbus communication
- Setting changes are saved to flash memory and survive a restart
- Only one task can run at a time (ADXL355 or MLX90393)